const promise = new Promise((resolve, reject) => {
    // resolve(10)
    reject('aaa')
})

promise.then((res) => {
    console.log('resolved', res)
}, (err) => {
    console.log('rejected', err)
})